package com.zhuss.common;

import com.zhuss.enums.IsEnum;

import java.io.Serializable;

public class BasePageParam extends AbstractBo implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -321695252845657695L;
	
	private Integer pageSize = 20;

	private Integer isSetPageSize = IsEnum.否.key();

	private Integer pageNum = 1;

	@SuppressWarnings("unused")
	private Integer start;
	
	@SuppressWarnings("unused")
	private Integer length;

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.isSetPageSize = IsEnum.是.key();
		this.pageSize = pageSize;
	}

	public Integer getIsSetPageSize() {
		return isSetPageSize;
	}

	public void setIsSetPageSize(Integer isSetPageSize) {
		this.isSetPageSize = isSetPageSize;
	}

	public Integer getPageNum() {
		return pageNum;
	}

	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}

	public Integer getStart() {
		return (pageNum - 1) * pageSize;
	}

	public void setStart(Integer start) {
		this.start = start;
	}

	public Integer getLength() {
		return pageSize;
	}

	public void setLength(Integer length) {
		this.length = length;
	}

}
